<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <div th:include="path::sub_path_css" ></div>
    <div th:include="path::ztree_css" ></div>
    <div th:include="path::layui_css" ></div>
</head>
<body class="gray-bg ">
    <div class="gr-dg">
        <form class="form-horizontal m" id="edit_form">
            <input type="hidden" id="roleids" name="param[roleids]">
            <input type="hidden" id="id" name="id" th:value="${user.id}">
            <div class="col-md-12">
                <div class="form-group">
                    <label class="col-sm-2 control-label">角色：</label>
                    <div class="col-sm-9">
                        <div id="role" class="demo-transfer"></div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">登录账号：</label>
                    <div class="col-sm-9">
                        <input type="text" name="loginName" id="loginName" th:value="${user.loginName}" class="form-control" placeholder="请输入登录账号">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">用户名称：</label>
                    <div class="col-sm-9">
                        <input type="text" name="userName" id="userName" th:value="${user.userName}" class="form-control" placeholder="请输入用户名称">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">邮箱：</label>
                    <div class="col-sm-9">
                        <input type="text" name="email" id="email" th:value="${user.email}" class="form-control" placeholder="请输入email">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">手机号：</label>
                    <div class="col-sm-9">
                        <input type="text" name="phone" id="phone" th:value="${user.phone}" class="form-control" placeholder="请输入手机号">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">性别：</label>
                    <div class="col-sm-9 radio i-checks">
                        <label th:each="dict:${@dictValue.findDictByKey('user_sex')}">
                            <input type="radio" th:checked="${dict.dictValue eq user.sex}" th:value="${dict.dictValue}" name="sex"> <i></i> [[${dict.dictText}]]
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">性别：</label>
                    <div class="col-sm-9 radio i-checks">
                        <label th:each="dict:${@dictValue.findDictByKey('user_state')}">
                            <input type="radio" th:checked="${dict.dictValue eq user.state}" th:value="${dict.dictValue}" name="state"> <i></i> [[${dict.dictText}]]
                        </label>
                    </div>
                </div>
            </div>
        </form>

    </div>

    <div th:include="path::sub_path_js" ></div>
    <div th:include="path::ztree_js" ></div>
    <script type="text/javascript" th:src="@{/js/fly-admin/system/user/edit.js}"></script>
    <script th:inline="javascript">
        var datas = [[${userRoleList}]];
        var roleAll = [[${roleAll}]];
        $(document).ready(function () {
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });
        });


    </script>
</body>

</html>
